﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace VarMap.Source_Files
{
    interface IDataReader
    {
        /// <summary>
        /// Source data file path
        /// </summary>
        string FilePath { get; set; }
        /// <summary>
        /// Source data file name
        /// </summary>
        string FileName { get; set; }
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="file">Source data excel file</param>
        /// <param name="sheetNames">Name of the sheet contains source data</param>
        /// <param name="columns">Column names</param>
        /// <returns></returns>
        DataSet GetData(string file, IList<string> sheetNames = null, IList<string> columns = null);
        
        /// <summary>
        /// 
        /// </summary>
        /// <param name="dataTable">Source datatable, </param>
        /// <param name="path">Destniation path to save varmap to</param>
        /// <param name="set">Cases' set</param>
        /// <param name="className">Test class's name</param>
        /// <param name="rootNodeAttributes">The arrtibutes of root element of varmap</param>
        /// <param name="configInfo">Configuration information of varmap</param>
        void ToXML(DataTable dataTable, string path, string set, string className, Dictionary<string, string> rootNodeAttributes, Dictionary<string, string> configInfo);
        
    }
}
